<%--
  Created by IntelliJ IDEA.
  User: 檬zhu
  Date: 2021/12/12
  Time: 18:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<html>
<head>
    <title>餐厅点餐系统</title>
    <link rel="icon" href="/resources/images/index.jpg" type="image/x-icon"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/index.css"/>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layui/css/layui.css">
    <!-- 引入 layui.js -->
    <script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
    <SCRIPT src="${pageContext.request.contextPath}/resources/js/jquery-1.9.1.min.js" type="text/javascript"></SCRIPT>
</head>
<body>
<%
    if (session.getAttribute("customer") != null)
        session.removeAttribute("customer");

    if (session.getAttribute("merchant")!=null)
        session.removeAttribute("merchant");

    if (request.getAttribute("modifySuccess") !=null){
        out.println("<script language='JavaScript'>alert('修改密码成功,请重新登录');window.open('http://localhost:8080/');</script>");
    }
    if (request.getAttribute("error") != null) {
        out.println("<script language='JavaScript'>alert('用户名或密码错误');window.location.href='/'</script>");
        return;
    }
%>

<DIV class="top_div size" style="color: #FFFFFF;">
    <div style="float: left;height: 330px">
        <img src="../resources/images/order.png" width="500px" height="350px">
    </div>
    <br>
    <p style="margin-right: 550px; font-size: 60px">网上订餐系统</p>
    <p style="float: right;font-size: 30px;margin-top: 100px">─────Web开发技术课程设计</p>
</DIV>
<div class="bot_div">
    <div style="background-color: #FFFFFF; float: left; width: 800px; height: 350px; margin-left: 50px; margin-top: 20px">
        <p class="size">Welcome to</p>
        <p class="size">order.com</p>
        <p style="font-size: 15px" class="size">or login with</p>
        <p style="text-align: center; margin-top: 12px">
            <span style="font-family: Impact, Haettenschweiler, ‘Arial Narrow Bold’, sans-serif;" class="b_size">f</span>
            <span><i class="layui-icon layui-icon-location b_size"></i></span>
            <span><i class="layui-icon layui-icon-share b_size"></i></span>
        </p>
    </div>
    <form style="background: rgb(255, 255, 255); margin: 50px 10px 10px 950px; border-image: none; width: 400px; height: 230px; text-align: center;"
          action="${pageContext.request.contextPath}/ap_loginCheck">
        <P style="padding: 30px 0px 10px; position: relative;"><SPAN class="u_logo" style="top: 30px;">
        <i class="layui-icon layui-icon-username" style="font-size: 25px; margin-left: 10px"></i></SPAN>
            <INPUT class="ipt" type="text" name="account" placeholder="请输入账户" value="">
        </P>
        <P style="position: relative;"><span class="p_logo" style="margin-right: 30px; top: -5px"><i class="layui-icon layui-icon-password" style="font-size: 25px; margin-left: 10px"></i></span>
            <INPUT class="ipt" name="pwd" id="password" type="password" placeholder="请输入密码" value="">
        </P>
        <P style="position: relative;"><SPAN class="i_logo">
        <i class="layui-icon layui-icon-group" style="font-size: 15px; margin-left: 10px"></i></SPAN>
        <div style="margin-top: 15px">
            <label><input type="radio" name="identity" value="顾客" checked="checked">顾客</label>
            <label><input type="radio" name="identity" value="商家" style="margin-left: 5%">商家</label>
        </div>
        </P>
        <DIV style="height: 50px; line-height: 50px; margin-top: 30px;">
            <P style="margin: 0px 35px 20px 45px;">
            <SPAN style="float: left;">
                <A style="color: #0099CC;" href="/SMSLogin">手机-验证码登录</A>
            </SPAN>
                <SPAN style="float: right; margin-right: 40px">
                <A style="color: #0099CC; margin-right: 10px;" href="/registerPage">注册</A>
              <input type="submit"
                     style="background: #0099CC; padding: 7px 20px; border-radius: 14px; border: 1px solid rgb(26, 117, 152); border-image: none; color: rgb(255, 255, 255); font-weight: bold;"
                     value="登录"/>
            </SPAN>
            </P>
        </DIV>
    </form>
</div>
</body>
</html>
